package com.elong.json;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;

public class UserInfo {

    @JSONField(name="dddd")
    private String userName;
    
    private String password;

    /**
     * getter method for userName
     * @return the userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * setter method for userName
     * @Description the userName to set
     * @param userName 
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * getter method for password
     * @return the password
     */
    public String getPassword() {
        return password;
    }

    /**
     * setter method for password
     * @Description the password to set
     * @param password 
     */
    public void setPassword(String password) {
        this.password = password;
    }
    
    public static void main(String[] args) {
	UserInfo userInfo = new UserInfo();
	userInfo.setUserName("test");
	System.out.println(JSON.toJSONString(userInfo));
    }
    
}
